package com.uniriho.lxr5002_service.been;

import com.google.gson.Gson;
import com.uniriho.lxr5002_service.utils.LogUtils;

public class RequestBean {
    //流水号
    private String DevSerial;
    //设备编号(起爆器编号)
    private String PosNumber;
    //经度
    private double GPS_lng;

    //纬度
    private double GPS_lat;
    //其他数据
    private OtherData otherData;

    public RequestBean(String devSerial, String posNumber, double GPS_lng, double GPS_lat, OtherData otherData) {
        DevSerial = devSerial;
        PosNumber = posNumber;
        this.GPS_lng = GPS_lng;
        this.GPS_lat = GPS_lat;
        this.otherData = otherData;
    }

    public String getDevSerial() {
        return DevSerial;
    }

    public void setDevSerial(String devSerial) {
        DevSerial = devSerial;
    }

    public String getPosNumber() {
        return PosNumber;
    }

    public void setPosNumber(String posNumber) {
        PosNumber = posNumber;
    }

    public double getGPS_lng() {
        return GPS_lng;
    }

    public void setGPS_lng(double GPS_lng) {
        this.GPS_lng = GPS_lng;
    }

    public double getGPS_lat() {
        return GPS_lat;
    }

    public void setGPS_lat(double GPS_lat) {
        this.GPS_lat = GPS_lat;
    }

    public String getOtherData() {
        String sendJson = new Gson().toJson(otherData);
        LogUtils.debug("otherData", sendJson);
        return sendJson;
    }

    public void setOtherData(OtherData otherData) {
        otherData = otherData;
    }
}
